package cn.good.yan.b3;

/**
 * 异常枚举
 * @author
 */
public enum CodeEnum {
    // key 自定义状态码  value 值
    UNKNOWN_EXCEPTION(10000,"系统未知错误"),
    VALID_EXCEPTION(10001,"参数校验异常"),
    SMS_CODE_EXCEPTION(10002,"验证码获取频率太高，请稍后再试"),
    TO_MANY_REQUEST(10003,"请求流量过大，请稍后再试"),
    ;

    private Integer code;
    private String msg;
    private CodeEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
